import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';

class YBFindHeaderSubPage extends StatelessWidget {

  final String imageStr;
  final String titleStr;

  const YBFindHeaderSubPage({Key key, this.imageStr, this.titleStr}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
       child: Column(
         mainAxisAlignment: MainAxisAlignment.center,
         crossAxisAlignment: CrossAxisAlignment.center,
         children: [
           Container(
             width: YBTextStyle.adapterSize40,
             height: YBTextStyle.adapterSize40,
             child: SvgPicture.asset(YBImageStyle.getFindSVGPath(imageStr)),
           ),
           Container(
             height: YBTextStyle.adapterSize8,
           ),
           Container(
             child: Text(
               titleStr,
               style: TextStyle(
                 color: YBColor.color606266,
                 fontWeight: FontWeight.w400,
                 fontSize: YBTextStyle.adapterSize11,
               ),
             ),
           ),
         ],
       ),
    );
  }
}
